﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FoneBuddy.LinqModel.Data;

namespace FoneBuddy.LinqModel
{
  public partial  class FilterDetail
    {
      #region Variable Declaration
        private IDataRepository _dataObject;
        #endregion

        public FilterDetail(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<FilterDetail> GetAllFilterDetail()
        {
            return _dataObject.GetAllFilterDetail();
        }
        public void Create()
        {
            _dataObject.CreateFilterDetail(this);
        }
        public void Delete()
        {
            _dataObject.DeleteFilterDetail(this);
        }
        public void Update()
        {
            _dataObject.UpdateFilterDetail(this);
        }
        public void GetFilterDetailById()
        {
            _dataObject.GetFilterDetailById(this);
        }
        public void GetFilterDetailByName()
        {
            _dataObject.GetFilterDetailByName(this);
        }
        public List<FilterDetail> GetAllFilterDetailByFilterId()
        {
            return _dataObject.GetAllFilterDetailByFilterId(this);
        }
    }
}
